<?php namespace App;

use Illuminate\Database\Eloquent\Model;

class News extends Model {

    protected $guarded  = ['newid'];

    protected $primaryKey  = 'newid';

    protected $table = "t_news";

    public $timestamps = false;

    public function poster()
    {
        return $this->belongsTo('App\User', 'user_id');
    }

}
